home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 13773 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: bud.cc.swin.edu.au!901380
  2. From: Vincent Edward Scaturchio <901380@bud.cc.swin.edu.au>
  3. Newsgroups: comp.lang.c
  4. Subject: Re:Sorting Character Arrays.
  5. Date: Wed, 10 Apr 1996 17:24:03 +1000
  6. Organization: Swinburne University of Technology    
  7. Message-ID: <Pine.OSF.3.91.960410170926.24676A-100000@bud.cc.swin.edu.au>
  8. NNTP-Posting-Host: bude.cc.swin.edu.au
  9. Mime-Version: 1.0
  10. Content-Type: TEXT/PLAIN; charset=US-ASCII
  11.  
  12. Hi
  13. I have three problems in this area, I hope someone is willing to help.
  14. Problem 1: Creating random strings of up to 5 letters of alphabet.
  15.         2: Placing these strings into an array.
  16.         3: Sorting the array (i.e.Quicksort) into alphabetical order.
  17. I've tried numerous times and am no closer. I feel competent when it 
  18. comes to doing the above in numbers but strings??
  19. I've been using strcmp and strcpy in the sorting section of my program to 
  20. compare different strings and swap them but alas to no avail. All I 
  21. receive is GPE faults from the processor. This is a first time post to 
  22. this group, any help would be appreciated.
  23.  
  24. Email: Flymo@bud.swin.edu.au
  25.  
  26.